package com.lanou.mapper;


import com.lanou.bean.Account;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AccountMapper {
    List<Account> findAccountAll();
    List<Account> serviceAccount(Integer id);
    void accountAdd(@Param("realName") String realName,@Param("idcardNo") String idcardNo,@Param("loginName") String loginName,@Param("loginPasswd") String loginPasswd,@Param("telephone") String telephone,@Param("createDate") Date createDate,@Param("status") Integer status);
    void accountUpdate(@Param("realName") String realName,@Param("telephone") String telephone,@Param("email") String email,@Param("gender") String gender,@Param("zipcode") String zipcode,@Param("qq") String qq,@Param("accountId") Integer accountId);
    List<Account> findAccountById(Integer accountId);
    void accountDelete(Integer accountId);
    void updateStatusById(@Param("status") String status,@Param("accountId") Integer accountId);
    void addaccountservice(@Param("idcardNo") String idcardNo,@Param("loginName") String loginName);
    Account idcardNologinNameisexist(@Param("idcardNo") String idcardNo,@Param("loginName") String loginName);
}
